export class UserInfo {
  id: number
  nickname: string | null
  password: string
  account: string
  signature: string | null
  avatar: Uint8Array | null

  constructor(id: number, account: string, password: string) {
    this.id = id
    this.account = account
    this.password = password
  }
}

export class AreaInfo {
  code: string
  name: string
  super_code?: string
  city?: Array<AreaInfo>
  area?: Array<AreaInfo>

  constructor(code: string, name: string) {
    this.code = code
    this.name = name
  }
}


export class TableOpreateResult<T> {
  code: number = 0
  msg?: string
  data?: T = null


  isSuccess(): boolean {
    return this.code == 200
  }
}